//
//  XHNavigationBar.h
//  下拉图片放大
//
//  Created by zxy on 2019/5/23.
//  Copyright © 2019 zxy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class XHNavigationBar;
@protocol XHNavigationBarDelegate <NSObject>

-(void)leftItemAction;
-(void)rightItemAction;
@end
@interface XHNavigationBar : UIView

/**
 初始化自定义导航栏

 @param frame frame
 @param leftItemImgName 左按钮图片名
 @param title 标题名
 @param rightItemImgName 右按钮图片名
 @return 自定义导航栏
 */
- (instancetype)initWithFrame:(CGRect)frame
                leftItemImageName:(NSString *)leftItemImgName
                title:(NSString *)title
                rightItemImageName:(NSString *)rightItemImgName
                delegate:(id<XHNavigationBarDelegate>)delegate;
@property(nonatomic,weak)id <XHNavigationBarDelegate>delegate;
@end

NS_ASSUME_NONNULL_END
